<%-- 
    Document   : NicholasviewDocument
    Created on : Apr 20, 2011, 1:51:34 PM
    Author     : ChuckToh
--%>
<%@page import="NicholasValueBeans.Document"%>
<h3>View Document</h3>
<%
            Document d = new Document();
            String[] categories = d.getAllDocumentCategories();

            out.println("<table width='100%' cellspacing='5' cellpadding='5' border='1'>");
            out.println("<tr>");
            out.println("<td colspan='2' align='center'>");
            out.println("<table width='100%' cellspacing='5' cellpadding='5'>");
            out.println("<tr>");
            for (int i = 0; i < categories.length; i++) {
                out.println("<td><a href='#categorySideBar' onclick='loadCategorySideBar(\"" + categories[i] + "\")'>" + categories[i] + "</a></td>");
            }
            out.println("</tr>");
            out.println("</table>");
            out.println("</td>");
            out.println("</tr>");

            out.println("<tr>");
            out.println("<td width='30%'>");
            out.println("<div id='categorySideBar'></div>");
            out.println("</td>");
            out.println("<td width='70%'>");
            out.println("<div id='content'></div>");
            out.println("</td>");
            out.println("</tr>");
            out.println("</table>");
%>